from fdfs_client.client import Fdfs_client# 1.创建fastDFS 客户端对象,同时指定配置文件client_app = Fdfs_client('client.conf')# 2.上传图片ret = client_app.upload_by_filename('/Users/chao/Desktop/01.jpeg')print(ret)# {'Group name': 'group1',#  'Remote file_id': 'group1/M00/00/00/wKhn0l51z2iAQeKPAAC4j90Tziw80.jpeg',#  'Status': 'Upload successed.',#  'Local file name': '/Users/chao/Desktop/01.jpeg',#  'Uploaded size': '46.00KB',#  'Storage IP': '192.168.103.210'}